trick for powers of tangent